html,
body {
    padding: 0px;
    margin: 0px;
    background-image: url(images/bkg.jpg);
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    height: 100%;
    scroll-behavior: smooth;
    direction: rtl;
}

* {
    transition: 0.5s;
    /* Add a transition effect (when scrolling - and font size is decreased) */
}

#script-message {
    display: none;
}

.loading-screen {
    position: fixed;
    z-index: 150;
    background-color: white;
    width: 100%;
    height: 100%;
    display: flex;
}

.loading-screen .loader {
    border: 2px solid #f3f3f3;
    /* Light grey */
    border-left-color: #3498db;
    /* Blue */
    border-right-color: #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.header-container {
    background-color: transparent;
    color: white;
    position: fixed;
    /* Fixed position - sit on top of the page */
    top: 0;
    width: 100%;
    /* Full width */
    height: 50px;
    padding: 20px 5px;
    z-index: 100;
}

.header-container.white {
    background-color: white;
    height: 20px;
}

.header-container a {
    color: white;
    text-decoration: none;
    border-top: solid transparent 3px;
    margin: 0px;
    padding: 10px 5px;
    display: inline;
}

.header-container a.selected {
    border-top: solid 3px;
}

.header-container.white a {
    color: black;
}

.header-container a:hover {
    border-top: solid #1c88ff 3px;
}

.logo-container {
    display: grid;
    display: -ms-grid;
    margin: 0px;
    padding: 0px;
    position: relative;
}

.logo-container #logo {
    width: 100%;
}

.logo-container .title {
    margin-left: 10px;
    padding-left: 40px;
    border-left: solid white 3px;
}

.logo-container .overlay {
    position: absolute;
    color: white;
}

.align-center {
    align-self: center;
    margin: auto;
    text-align: center;
}

.align-end {
    display: absolute;
    bottom: 0;
}

.middle-nav {
    padding: 20px;
    background-image: linear-gradient(to bottom, black 2%, white 20%);
    margin: 0px;
    display: flex;
}

.middle-nav .box {
    margin: auto;
    display: flex;
}

.middle-nav .box a {
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.middle-nav .box a div {
    border: solid black 1px;
    border-radius: 5px;
    text-align: center;
    padding: 5px;
    color: black;
    width: 210px;
    height: 300px;
    margin-top: 5px !important;
}

.middle-nav .box a div img {
    width: 100px;
    height: 100px;
}

.middle-nav .box a:hover div img {
    width: 128px;
    height: 128px;
}

.middle-nav .box a div p.readmore {
    font-size: small;
    color: transparent;
    bottom: 2px;
    margin-bottom: 2px;
    position: relative;
}

.middle-nav .box a:hover div p.readmore {
    font-size: small;
    color: gray;
}

.middle-nav .box a:hover div {
    height: 330px;
    width: 231px;
    background-image: radial-gradient(transparent, rgba(0, 0, 0, 0.2));
}

.postblock {
    height: auto;
    padding: 10% 10px;
    margin: 30% 0px;
    background-color: white;
    color: black;
    box-shadow: 10px black;
}

.postblock div {
    margin: auto;
    text-align: center;
    max-width: 600px;
}

.postblock.right {
    transform: skewY(-5deg);
}

.postblock.right div {
    transform: skewY(5deg);
}

.postblock.left {
    transform: skewY(5deg);
}

.postblock.left div {
    transform: skewY(-5deg);
}

img.icon {
    max-width: 60px;
    max-height: 60px;
    display: inline;
    margin: 5px;
}

.full {
    height: 100%;
    width: 100%;
    display: flex;
}

#end {
    color: transparent;
    font-size: xx-large;
    margin-left: -100px;
}

#end.scrolled {
    color: white;
    margin-left: 0px;
}

@media only screen and (max-width: 768px) {
    .middle-nav .box {
        display: grid;
    }
}

.software-page .header-container.white {
    position: static;
    margin-bottom: 5px;
}

.software-page .postblock .div {
    text-align: justify;
}

.software-page .postblock .div img.icon {
    max-width: 80px;
    max-height: 80px;
    margin: 5px;
    float: left;
}